package de.tabuma.shopping.logik;

import de.tabuma.shopping.entity.CurrentOrderLicensePackageRelation;
import java.util.List;
/**
 *
 * @author alefen
 */
public class CurrentOrderLicensePackageRelationFacade {
    public static int create(CurrentOrderLicensePackageRelation colpr, String user) {
        return (int) PMF.doCreate(colpr, user);
    }

    public static void update(CurrentOrderLicensePackageRelation colpr, String user) {
        PMF.doUpdate(colpr, user);
    }

    public static CurrentOrderLicensePackageRelation get(int id) {
        return PMF.get(id, new CurrentOrderLicensePackageRelation());
    }

    public static void remove(CurrentOrderLicensePackageRelation colpr, String user) {
        PMF.doRemove(colpr, user);
    }

    public static List<CurrentOrderLicensePackageRelation> getList(int currentOrderId) {
        String keys[] = {"currentOrderId"};
        String values[] = {""+currentOrderId};
        return PMF.get(keys, values, new CurrentOrderLicensePackageRelation());
    }
}
